package cn.bfay.controller;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * DemoController.
 *
 * @author wangjiannan
 * @since 2019/12/16
 */
@RestController
@RequestMapping(  "/user")
public class DemoController {


    @GetMapping("/get-login-info")
    @ApiOperation(value = "获取登录用户信息")
    public void getLoginInfo(
            @RequestParam @NotBlank(message = "参数不能为空") @ApiParam(value = "用户名") String username) {
    }




    @GetMapping("/get-detail")
    @ApiOperation(value = "获取用户详情")
    public void getDetail(
            @RequestParam @NotBlank(message = "参数不能为空") @ApiParam(value = "医院统一社会信用代码") String hospitalUscc,
            @RequestParam @NotBlank(message = "参数不能为空") @ApiParam(value = "用户Id") String userId) {
    }


}
